home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 1833 / 1833.xpi / chrome / yoono.jar / content / yoono / bookmarks / bookmarksOverlay.js < prev    next >
Text File  |  2009-12-16  |  617b  |  25 lines

  1. /*
  2.  * bookmarksOverlay.js
  3.  *
  4.  * @author    david marteau <marteau.david@free.fr>
  5.  * @copyright 2005-2006 Yoono
  6.  */
  7.  
  8.  function ynSaveBookmarks()
  9.  {
  10.    var bundle = document.getElementById("yoono-bmks-bundle");
  11.    var gBkmService = Components.classes['@yoono.com/bookmarks-restore;1']
  12.                        .getService().wrappedJSObject;
  13.    
  14.    gBkmService.backup();
  15.    alert(bundle.getString("bookmarksarchived"));
  16.  
  17.  }
  18.  
  19.  
  20.  function ynRestoreBookmarks()
  21.  {
  22.    window.openDialog('chrome://yoono/content/bookmarks/bookmarksdlg.xul',
  23.                      'yoono-bookmarks', 'chrome,modal'); 
  24.  }
  25.